package com.proximity.dto;

import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import org.springframework.stereotype.Component;

import com.google.appengine.api.datastore.Key;
import com.proximity.core.enums.RoleEnum;

@Component
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserDto {

	private Key id;
	
	private String user;
	private String password;
	private RoleEnum role;
	
	private Float latitude;
	private Float longitude;
	
	private List<String> cells;
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	public Key getId() {
		return id;
	}
	public void setId(Key id) {
		this.id = id;
	}
	
	public UserDto() {
	}

	@Persistent
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	
	@Persistent
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	@Persistent
	public RoleEnum getRole() {
		return role;
	}
	public void setRole(RoleEnum role) {
		this.role = role;
	}
	
	@Persistent
	public Float getLongitude() {
		return longitude;
	}
	public void setLongitude(Float longitude) {
		this.longitude = longitude;
	}
	
	@Persistent
	public Float getLatitude() {
		return latitude;
	}
	public void setLatitude(Float latitude) {
		this.latitude = latitude;
	}
	
	@Persistent
	public List<String> getCells() {
		return cells;
	}
	public void setCells(List<String> cells) {
		this.cells = cells;
	}
	
	
}
